package com.scalar.chiptrack.commons.forms;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import com.scalar.chiptrack.ChipTrackActionForm;

import javax.servlet.http.HttpServletRequest;

/**
 * User: Sujan
 */
public class AttachFileForm extends ChipTrackActionForm {
    private String fileGroup;
    private String fileSubGroup;
    private boolean allowMultiple = true;
    private boolean allowAttach = true;
    private boolean allowDelete = true;
    private String comments;
    private FormFile attachedFormFile;
    private String linkText;
    private String formTitle;

    public String getFileGroup() {
        return fileGroup;
    }

    public void setFileGroup(String fileGroup) {
        this.fileGroup = fileGroup;
    }

    public String getFileSubGroup() {
        return fileSubGroup;
    }

    public void setFileSubGroup(String fileSubGroup) {
        this.fileSubGroup = fileSubGroup;
    }

    public boolean isAllowMultiple() {
        return allowMultiple;
    }

    public void setAllowMultiple(boolean allowMultiple) {
        this.allowMultiple = allowMultiple;
    }

    public boolean isAllowAttach() {
        return allowAttach;
    }

    public void setAllowAttach(boolean allowAttach) {
        this.allowAttach = allowAttach;
    }

    public boolean isAllowDelete() {
        return allowDelete;
    }

    public void setAllowDelete(boolean allowDelete) {
        this.allowDelete = allowDelete;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
        this.allowMultiple = true;
        this.allowAttach = true;
        this.allowDelete = true;
    }

    public FormFile getAttachedFormFile() {
        return attachedFormFile;
    }

    public void setAttachedFormFile(FormFile attachedFormFile) {
        this.attachedFormFile = attachedFormFile;
    }

    public String getLinkText() {
        return linkText;
    }

    public void setLinkText(String linkText) {
        this.linkText = linkText;
    }

    public String getFormTitle() {
        return formTitle;
    }

    public void setFormTitle(String formTitle) {
        this.formTitle = formTitle;
    }
}
